package com.wenchao.Controller;

import jakarta.servlet.http.HttpServletRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class RegistrationController {

    @PostMapping("/register")
    public int registerUser(@RequestParam("username") String username,
                            @RequestParam("password") String password,
                            HttpServletRequest request) {
        System.out.println("fdfffdfd");
        // TODO: Implement user registration logic
        System.out.println(username + password);
        return 1;
    }
}
